<?php /* Smarty version 3.1.27, created on 2017-04-19 15:04:11
         compiled from "E:\phpStudy\WWW\address\myweb\MobilePark\templates\admin\article_add.html" */ ?>
<?php
/*%%SmartyHeaderCode:472258f70beb265763_47153256%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '08f3d8e650a051becfea45f543af4c9fabc0210a' => 
    array (
      0 => 'E:\\phpStudy\\WWW\\address\\myweb\\MobilePark\\templates\\admin\\article_add.html',
      1 => 1492585442,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '472258f70beb265763_47153256',
  'variables' => 
  array (
    'artcate_list' => 0,
    'item' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_58f70beb344210_64249022',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_58f70beb344210_64249022')) {
function content_58f70beb344210_64249022 ($_smarty_tpl) {

$_smarty_tpl->properties['nocache_hash'] = '472258f70beb265763_47153256';
?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="../static/admin/css/pintuer.css">
<link rel="stylesheet" href="../static/admin/css/admin.css">
<?php echo '<script'; ?>
 src="../static/admin/js/jquery.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="../static/admin/js/pintuer.js"><?php echo '</script'; ?>
>

<link rel="stylesheet" href="../static/admin/kindeditor/themes/default/default.css" />
<?php echo '<script'; ?>
 src="../static/admin/kindeditor/kindeditor-min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="../static/admin/kindeditor/lang/zh_CN.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
>
var editor;
KindEditor.ready(function(K) {
  editor = K.create('textarea[name="article_desc"]', {
    allowFileManager : true
  });
  editor = K.create('textarea[name="article_content"]', {
    allowFileManager : true
  });
});
<?php echo '</script'; ?>
>

</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加内容</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="article_add.php" enctype="multipart/form-data">  
      <div class="form-group">
        <div class="label">
          <label>文章标题：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="article_title" data-validate="required:请输入文章标题" />
          <div class="tips"></div>
        </div>
     </div>  

     <div class="form-group">
        <div class="label">
          <label>作者：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="article_author" data-validate="required:请输入产品价格" />
          <div class="tips"></div>
        </div>
     </div>

     <div class="form-group">
        <div class="label">
          <label>添加时间：</label>
        </div>
        <div class="field"> 
          <input type="date" class="laydate-icon input w50" name="article_time"  value=""  data-validate="required:日期不能为空" style="padding:10px!important; height:auto!important;border:1px solid #ddd!important;" />
          <div class="tips"></div>
        </div>
     </div>

     <div class="form-group">
        <div class="label">
          <label>图片：</label>
        </div>
        <div class="field">
          <input type="file" class="button bg-blue margin-left" name="article_img" id="image1" value="+ 浏览上传"  style="float:left;">
        </div>
      </div>  

      <div class="form-group">
        <div class="label">
          <label>文章类别：</label>
        </div>
        <div class="field">
         <select name="artcate_id" class="input" style="width:200px; line-height:17px;">
              <option value="">请选择分类</option>
              <?php
$_from = $_smarty_tpl->tpl_vars['artcate_list']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['item']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->_loop = true;
$foreach_item_Sav = $_smarty_tpl->tpl_vars['item'];
?>
              <option value="<?php echo $_smarty_tpl->tpl_vars['item']->value['artcate_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['item']->value['artcate_name'];?>
</option>
              <?php
$_smarty_tpl->tpl_vars['item'] = $foreach_item_Sav;
}
?>
            </select>
          <div class="tips"></div>
        </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>文章描述：</label>
        </div>
        <div class="field">
          <textarea name="article_desc" id="" cols="30" rows="15"></textarea>
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>文章内容：</label>
        </div>
        <div class="field">
          <textarea name="article_content" id="" cols="30" rows="20"></textarea>
          <div class="tips"></div>
        </div>
      </div>
     
      <div class="clear"></div>


      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>

</body></html><?php }
}
?>